import request from '@/utils/request'

// 查询列表
export function queryList(data) {
    return request({
        url: '/product/line/material/list',
        method: 'post',
        data: data
    })
}

// 查询详细
export function getInfo(data) {
    return request({
        url: '/product/line/material/info',
        method: 'post',
        data: data
    })
}

// 新增
export function save(data) {
    return request({
        url: '/product/line/material/add',
        method: 'post',
        data: data
    })
}

// 修改
export function update(data) {
    return request({
        url: '/product/line/material/edit',
        method: 'post',
        data: data
    })
}

// 删除
export function remove(data) {
    return request({
        url: '/product/line/material/remove',
        method: 'post',
        data: data
    })
}
// 产线下拉
export function productionList(data) {
    return request({
        url: '/production/line/all',
        method: 'post',
        data: data
    })
}
// 设备下拉
export function benchList(data) {
    return request({
        url: '/work/bench/query/list/by/line',
        method: 'post',
        data: data
    })
}
// 工位下拉
export function positionList(data) {
    return request({
        url: '/bench/position/query/list/by/line/bench',
        method: 'post',
        data: data
    })
}


export function wlqueryList(data) {
    return request({
        url: '/material/list',
        method: 'post',
        data: data
    })
}
export function wlquerySelectList(data) {
    return request({
        url: '/material/query/list/by/select/code',
        method: 'post',
        data: data
    })
}
// 查询详细
export function getInfoProduct(data) {
    return request({
        url: '/product/info',
        method: 'post',
        data: data
    })
}
// 查询产线
export function getline(data) {
    return request({
        url: '/product/line/query/list/by/product',
        method: 'post',
        data: data
    })
}